---
title: LangChainStream
description: API Reference for LangChainStream.
---

# `LangChainStream`

<Note type="warning">
  LangChainStream is part of the [legacy LangChain
  integration](/providers/legacy-providers/langchain). It is recommended to use
  the [LangChain Adapter](/providers/adapters/langchain) instead.
</Note>

Helps with the integration of LangChain. It is compatible with useChat and useCompletion.

## Import

<Snippet text={`import { LangChainStream } from "ai"`} prompt={false} />

<ReferenceTable packageName="streams" functionName="LangChainStream" />
